import { get, post } from '@/utils/http'

// 用户登录
export const userLoginApi = (data: UserType.ILogin) => {
  return post<UserType.ILoginResult>('/api/user/login', data)
}

// 检查账号是否存在
export const checkUserNameExistApi = (username: string) => {
  return post<number>('/api/user/checkUserNameExist', { username })
}
